﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace WebContratos
{
    public partial class AdministraFlujoContrato : System.Web.UI.Page
    {
        public String basePath = "";
        public String departamentoSe = "STM";
        public String rutaactivado = "";
        public String codContrato = "";
        public String ruta = "";
        private static int conta = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                conta = 0;
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            ImageButton imgbtnRemove = new ImageButton();
            imgbtnRemove.ID = "uxStandardLetterDeleteImage_" + conta;
            imgbtnRemove.CommandName = "uxStandardLetterDeleteImage_" + conta;
            imgbtnRemove.ImageUrl = "images/imagenesCRM04/ico_entitymanagement.gif"; 
            //imgStatus.AlternateText = "Remove"; 

            Table1.Rows[0].Cells[conta].Controls.Add(imgbtnRemove);

            conta++;

            ImageButton imgbtnRemove1 = new ImageButton();
            imgbtnRemove1.ID = "uxStandardLetterDeleteImage_" + conta;
            imgbtnRemove1.CommandName = "uxStandardLetterDeleteImage_" + conta;
            imgbtnRemove1.ImageUrl = "images/flecha-izq-animada21.gif";
            //imgStatus.AlternateText = "Remove"; 

            Table1.Rows[0].Cells[conta].Controls.Add(imgbtnRemove1);

            conta++;

            conta++;

            ImageButton imgbtnRemove2 = new ImageButton();
            imgbtnRemove2.ID = "uxStandardLetterDeleteImage_" + conta;
            imgbtnRemove2.CommandName = "uxStandardLetterDeleteImage_" + conta;
            imgbtnRemove2.ImageUrl = "images/imagenesCRM04/ico_entitymanagement.gif";
            //imgStatus.AlternateText = "Remove"; 

            Table1.Rows[0].Cells[conta].Controls.Add(imgbtnRemove2);

        }
    }
}
